package com.namecard.namecardapi.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.namecard.namecardapi.entity.TCommodity;
import com.namecard.namecardapi.entity.vo.TCommodityVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zm
 * @since 2024-04-21
 */
public interface TCommodityMapper extends BaseMapper<TCommodity> {
    //分页查询
    IPage<TCommodity> selectCdPage(Page<TCommodity> page, @Param("vo") TCommodityVo commodityVo);

    void delectById(@Param("id") Long id);

    void updateByState(@Param("tc") TCommodity tCommodity);

    void updateByRoll(@Param("tc") TCommodity tCommodity);


    int insertCommdity(TCommodity tCommodity);
}
